package com.example.mapstruct.convert;

import com.example.mapstruct.entity.zoo.ZooDao;
import com.example.mapstruct.entity.zoo.ZooVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @ClassName ZooConvert
 * @Description
 * @Author huyingliang
 * @Date 2024/1/16 10:18
 */
@Mapper
public interface ZooConvert {
    /*使用工厂模式获取实例*/
    ZooConvert INSTANCE = Mappers.getMapper(ZooConvert.class);

    /*将Dao转换为VO*/
    ZooVO dao2Vo(ZooDao zooDao);

}
